<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ECSHOP v2.7.3" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'common.js')); ?>
<script type="text/javascript" src="themes/68ecshop_moban_zhongliang/js/mzp-packed-me.js"></script>
<script type="text/javascript" src="themes/68ecshop_moban_zhongliang/js/action.js"></script>
<style>
.ur_here{width:770px;}
</style>
</head>
<body> 
<?php echo $this->fetch('library/page_header.lbi'); ?>


<div class="block clearfix">
  <div id="pageLeft" class="fl">
	 
	 <?php echo $this->fetch('library/category_tree.lbi'); ?> 
	 <?php echo $this->fetch('library/goods_attrlinked.lbi'); ?>
	 <?php echo $this->fetch('library/history.lbi'); ?>
	 <?php echo $this->fetch('library/goods_article.lbi'); ?>
   
	</div>
	<div id="pageRight" class="fr">
    <?php echo $this->fetch('library/ur_here.lbi'); ?>
  	<h1 class="goodstitileh1"><?php echo $this->_var['goods']['goods_style_name']; ?></h1>
    
<div class="clearfix">
	  <div class="goodsimgbox fl" >
		  <div id="focuscont">
     <?php if ($this->_var['pictures']): ?>
	 <a style="position:relative" href="<?php echo $this->_var['goods']['goods_img']; ?>" id="zoom1" class="MagicZoom MagicThumb" title="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>">
      <img src="<?php echo $this->_var['goods']['goods_img']; ?>" alt="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>" style="border:1px solid #d2d0d0"/> 
     </a>
         <?php else: ?>
         <img src="<?php echo $this->_var['goods']['goods_img']; ?>" alt="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>"/>
         <?php endif; ?>
	   </div>
	<?php if ($this->_var['pictures']): ?>
		  
<script type="text/javascript">
	mypicBg();
</script>
<?php endif; ?>
		</div>
        
		<div class="goodstxtbox fr" >
        <!---
		  <h4 class="goodName" style="background:red; color:#FFF">
             <div class="prev">
                <?php if ($this->_var['prev_good']): ?>
                <a href="<?php echo $this->_var['prev_good']['url']; ?>" style="color:#CCC; font-size:12px;">上一个</a>
                <?php endif; ?>
                <?php if ($this->_var['next_good']): ?>
                <a href="<?php echo $this->_var['next_good']['url']; ?>" style="color:#CCC; font-size:12px;">下一个</a>
                <?php endif; ?>
             </div>
		 </h4>
         -->
		 <form class="goodsform" action="javascript:addToCart(<?php echo $this->_var['goods']['goods_id']; ?>)" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY" >
			<?php if ($this->_var['promotion']): ?>
			<div class="Goodpromotion">
			<font id="fontcolor"><?php echo $this->_var['lang']['activity']; ?></font><br />
			<?php $_from = $this->_var['promotion']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
			<?php if ($this->_var['item']['type'] == "snatch"): ?>
			<a href="snatch.php" title="<?php echo $this->_var['lang']['snatch']; ?>">[<?php echo $this->_var['lang']['snatch']; ?>]</a>
			<?php elseif ($this->_var['item']['type'] == "group_buy"): ?>
			<a href="group_buy.php" title="<?php echo $this->_var['lang']['group_buy']; ?>">[<?php echo $this->_var['lang']['group_buy']; ?>]</a>
			<?php elseif ($this->_var['item']['type'] == "auction"): ?>
			<a href="auction.php" title="<?php echo $this->_var['lang']['auction']; ?>">[<?php echo $this->_var['lang']['auction']; ?>]</a>
			<?php elseif ($this->_var['item']['type'] == "favourable"): ?>
			<a href="activity.php" title="<?php echo $this->_var['lang']['favourable']; ?>">[<?php echo $this->_var['lang']['favourable']; ?>]</a>
			<?php endif; ?>
			<a href="<?php echo $this->_var['item']['url']; ?>" title="<?php echo $this->_var['lang'][$this->_var['item']['type']]; ?> <?php echo $this->_var['item']['act_name']; ?><?php echo $this->_var['item']['time']; ?>"><?php echo $this->_var['item']['act_name']; ?></a><br />
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			<script>setInterval("colorStyle('fontcolor','a','b')",300);</script>
			</div>
			<?php endif; ?>
            
            
			<div class="imgintro">
            <ul>
                    <?php if ($this->_var['cfg']['show_goodssn']): ?>
                    <li>            
                        <b  ><?php echo $this->_var['lang']['goods_sn']; ?></b><?php echo $this->_var['goods']['goods_sn']; ?>
                    </li>
                    
                    <li>            
                        <?php echo $this->_var['goods']['goods_baohan']; ?>
                    </li>
                     
                    <li>            
                        <b >规格&nbsp;:</b>&nbsp;<?php echo $this->_var['goods']['goods_brief']; ?> 
                        &nbsp;&nbsp;&nbsp;
                        <b >建筑面积&nbsp;:</b>&nbsp;<?php echo $this->_var['goods']['seller_note']; ?>
                    </li>
                    <?php endif; ?>
        
                    <?php if ($this->_var['goods']['goods_brand'] != "" && $this->_var['cfg']['show_brand']): ?>
                    <li>
                    <?php echo $this->_var['lang']['goods_brand']; ?><a href="<?php echo $this->_var['goods']['goods_brand_url']; ?>" ><u><?php echo $this->_var['goods']['goods_brand']; ?></u></a>
                    </li>
                    <?php endif; ?>
                    
                    <?php if ($this->_var['cfg']['show_goodsweight']): ?>
                    <li>
                    <?php echo $this->_var['lang']['goods_weight']; ?><?php echo $this->_var['goods']['goods_weight']; ?>
                    </li>
                    <?php endif; ?>
        
        
                    <?php if ($this->_var['cfg']['show_addtime']): ?>
                    <li>            
                    <?php echo $this->_var['lang']['add_time']; ?><?php echo $this->_var['goods']['add_time']; ?>
                    </li>
                    <?php endif; ?>
                    <!---
                    <li>
                    <?php echo $this->_var['lang']['goods_rank']; ?> <img src="themes/68ecshop_moban_zhongliang/images/stars<?php echo $this->_var['goods']['comment_rank']; ?>.gif" alt="comment rank <?php echo $this->_var['goods']['comment_rank']; ?>" />
                    </li>
                    ---->
                    <li>
                    <!--<font style="font-size:12px;"><?php echo $this->_var['lang']['shop_price']; ?></font>-->
                    <font style="font-size:12px; color:rgb(0,0,0); "><b>一口价:</b></font>
                    <font class="price" id="ECS_SHOPPRICE" style="font-size:16px;"><?php echo $this->_var['goods']['shop_price_formated']; ?></font>
                    </li>
				</ul>
                    <div style="height:6px;"></div>
			<?php if ($this->_var['volume_price_list']): ?>
		 <font class="a"><?php echo $this->_var['lang']['volume_price']; ?>：</font><br />
			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cccccc" class="blank" style="font-size:12px;">
				<tr>
				<td align="center" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['number_to']; ?></td>
				<td align="center" bgcolor="#FFFFFF"><?php echo $this->_var['lang']['preferences_price']; ?></td>
				</tr>
				<?php $_from = $this->_var['volume_price_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('price_key', 'price_list');if (count($_from)):
    foreach ($_from AS $this->_var['price_key'] => $this->_var['price_list']):
?>
				<tr>
				<td align="center" bgcolor="#FFFFFF" class="shop"><?php echo $this->_var['price_list']['number']; ?></td>
				<td align="center" bgcolor="#FFFFFF" class="price"><?php echo $this->_var['price_list']['format_price']; ?></td>
				</tr>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</table>
		 <?php endif; ?>
		
			
			
			<?php $_from = $this->_var['specification']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('spec_key', 'spec');if (count($_from)):
    foreach ($_from AS $this->_var['spec_key'] => $this->_var['spec']):
?>
			<font style="font-size:12px;"><?php echo $this->_var['spec']['name']; ?>：</font>
			
			<?php if ($this->_var['spec']['attr_type'] == 1): ?>
			<?php if ($this->_var['cfg']['goodsattr_style'] == 1): ?>
			<br />
			<?php $_from = $this->_var['spec']['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['value']):
?>
			<label for="spec_value_<?php echo $this->_var['value']['id']; ?>">
			<input type="radio" name="spec_<?php echo $this->_var['spec_key']; ?>" value="<?php echo $this->_var['value']['id']; ?>" id="spec_value_<?php echo $this->_var['value']['id']; ?>" <?php if ($this->_var['key'] == 0): ?>checked<?php endif; ?> onClick="changePrice()" />
			<font style="font-size:12px;"><?php echo $this->_var['value']['label']; ?> [<?php if ($this->_var['value']['price'] > 0): ?><?php echo $this->_var['lang']['plus']; ?><?php elseif ($this->_var['value']['price'] < 0): ?><?php echo $this->_var['lang']['minus']; ?><?php endif; ?> <?php echo $this->_var['value']['format_price']; ?>] </font></label><br />
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			<input type="hidden" name="spec_list" value="<?php echo $this->_var['key']; ?>" />
			<?php else: ?>
			<select name="spec_<?php echo $this->_var['spec_key']; ?>" onChange="changePrice()" class="InputBorder">
				<?php $_from = $this->_var['spec']['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['value']):
?>
				<option label="<?php echo $this->_var['value']['label']; ?>" value="<?php echo $this->_var['value']['id']; ?>">
                <font style="font-size:12px;">
                <?php echo $this->_var['value']['label']; ?> <?php if ($this->_var['value']['price'] > 0): ?><?php echo $this->_var['lang']['plus']; ?><?php elseif ($this->_var['value']['price'] < 0): ?><?php echo $this->_var['lang']['minus']; ?><?php endif; ?><?php if ($this->_var['value']['price'] != 0): ?><?php echo $this->_var['value']['format_price']; ?><?php endif; ?></font></option>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</select>
			<br />
			<input type="hidden" name="spec_list" value="<?php echo $this->_var['key']; ?>" />
			<?php endif; ?>
			<?php else: ?>
			<br />
			<?php $_from = $this->_var['spec']['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['value']):
?>
			<label for="spec_value_<?php echo $this->_var['value']['id']; ?>">
			<input type="checkbox" name="spec_<?php echo $this->_var['spec_key']; ?>" value="<?php echo $this->_var['value']['id']; ?>" id="spec_value_<?php echo $this->_var['value']['id']; ?>" onClick="changePrice()" />
			<font style="font-size:12px;"><?php echo $this->_var['value']['label']; ?> [<?php if ($this->_var['value']['price'] > 0): ?><?php echo $this->_var['lang']['plus']; ?><?php elseif ($this->_var['value']['price'] < 0): ?><?php echo $this->_var['lang']['minus']; ?><?php endif; ?> <?php echo $this->_var['value']['format_price']; ?>]</font> </label>
			<br />
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			<input type="hidden" name="spec_list" value="<?php echo $this->_var['key']; ?>" />
			<?php endif; ?>
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			
			
			<input name="number"  type="hidden" id="number" value="1" size="4" onBlur="changePrice()" class="InputBorder"/>
			<p align="center" style="height:35px;">
				<a href="javascript:addToCart(<?php echo $this->_var['goods']['goods_id']; ?>)"><img src="themes/68ecshop_moban_zhongliang/images/lijigoumai.png" /></a>
                &nbsp;&nbsp;
    	        <a href="flow.php" ><img src="themes/68ecshop_moban_zhongliang/images/chakangouwuche.png" /></a>
			</p>
		</form>
        
        <DIV class="contact" style="margin-top: 6px;">
            <P><STRONG>全国统一咨询电话：<IMG src="themes/68ecshop_moban_zhongliang/images/tel2.gif"></STRONG></P>
            <P><STRONG>在线客服：</STRONG></P>
            <P> &nbsp;&nbsp;QQ客服一：
            <A href="tencent://message/?uin=497460409&amp;Site=别墅图纸超市&amp;Menu=yes" target="blank">
                <IMG border="0" alt="点击这里给我发消息" src="themes/68ecshop_moban_zhongliang/images/pa.gif"></A>&nbsp;&nbsp;&nbsp;&nbsp;QQ客服二：
            <A href="tencent://message/?uin=497460409&amp;Site=别墅图纸超市&amp;Menu=yes" target="blank"><IMG 
            border="0" alt="点击这里给我发消息" src="themes/68ecshop_moban_zhongliang/images/pa.gif"></A></P>
        </DIV>
	</div>
</div>
    
	<div class="infotit clearfix" id="com_b" >
	    <h2><?php echo $this->_var['lang']['feed_goods_desc']; ?></h2>
	</div>
	 <div class="tagcontent" id="com_v"></div>
	 <div id="com_h">
		<blockquote>
        <div style="font-size: large">
        <?php echo $this->_var['goods']['goods_desc']; ?>
        </div>
        </blockquote>
	 </div>
	<script type="text/javascript">reg("com");</script>
	</div>
</div>

<?php echo $this->fetch('library/help.lbi'); ?>
<?php echo $this->fetch('library/page_footer.lbi'); ?>
</body>
<script type="text/javascript">
var goods_id = <?php echo $this->_var['goods_id']; ?>;
var goodsattr_style = <?php echo empty($this->_var['cfg']['goodsattr_style']) ? '1' : $this->_var['cfg']['goodsattr_style']; ?>;
var gmt_end_time = <?php echo empty($this->_var['promote_end_time']) ? '0' : $this->_var['promote_end_time']; ?>;
<?php $_from = $this->_var['lang']['goods_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
var goodsId = <?php echo $this->_var['goods_id']; ?>;
var now_time = <?php echo $this->_var['now_time']; ?>;


onload = function(){
  changePrice();
  fixpng();
  try {onload_leftTime();}
  catch (e) {}
}

/**
 * 点选可选属性或改变数量时修改商品价格的函数
 */
function changePrice()
{
  var attr = getSelectedAttributes(document.forms['ECS_FORMBUY']);
  var qty = document.forms['ECS_FORMBUY'].elements['number'].value;

  Ajax.call('goods.php', 'act=price&id=' + goodsId + '&attr=' + attr + '&number=' + qty, changePriceResponse, 'GET', 'JSON');
}

/**
 * 接收返回的信息
 */
function changePriceResponse(res)
{
  if (res.err_msg.length > 0)
  {
    alert(res.err_msg);
  }
  else
  {
    document.forms['ECS_FORMBUY'].elements['number'].value = res.qty;

    if (document.getElementById('ECS_GOODS_AMOUNT'))
      document.getElementById('ECS_GOODS_AMOUNT').innerHTML = res.result;
  }
}

</script>
</html>
